package chain.bimpl.old;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        //最小范围
        System.out.println(getNames(20));
        //中间范围
        System.out.println(getNames(320));
        //不在范围
        System.out.println(getNames(900));
        //最大范围
        System.out.println(getNames(3200));
    }

    private static List<String> getNames(int money) {
        List<String> names = new ArrayList<>();
        if (money < 300) {
            return Arrays.asList("张三","张三老婆");
        } else if (money <= 800 && money > 300) {
            return Arrays.asList( "李四","李四老婆","李四孩子");
        } else if (money > 1000) {
           return Arrays.asList("王五","王五女儿");
        }
        return null;

    }
}
